package com.hzy.quetosys.service;

import com.github.pagehelper.PageInfo;
import com.hzy.quetosys.entity.Customer;

public interface CustomerService {
    boolean append(Customer customer);

    /**
     * 查询全部
     * @param pageNum
     * @param pageSize
     * @return
     */
    PageInfo<Customer> findAll(int pageNum, int pageSize);

    /**
     * 关键字查询
     * @param pageNum
     * @param pageSize
     * @param keyword
     * @return
     */

    PageInfo<Customer> findByKeyword(int pageNum, int pageSize, String keyword);

    Customer findById(int id);

    boolean modify(Customer customer);

    boolean remove(int id);
}
